package com.wiz.web.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wiz.web.vo.criteria.FuellingOrderCriteria;
import com.wiz.web.vo.to.FuellingPayOrderTO;

public interface FuellingMapper {

	int insertOrder(FuellingOrderCriteria criteria);
	
	List<FuellingPayOrderTO> getFuellingPayOrderList(FuellingOrderCriteria criteria);
	
	FuellingPayOrderTO getFuellingPayOrderTO(FuellingOrderCriteria criteria);
	
	/**
	 * 更新未支付&未结算的订单
	 * @param criteria
	 * @return
	 */
	int updateFuellingPayOrder(FuellingOrderCriteria criteria);
	
	int payOrder(FuellingOrderCriteria criteria);
	
	/**
	 * 修改结算状态
	 * @param fuellingOrderId
	 * @return
	 */
	int determineCalculStatus(@Param("fuellingOrderId") String fuellingOrderId);
	
	int getCntOrder(FuellingOrderCriteria criteria);
	
	/**
	 * 获取未结算订单
	 * @param count
	 * @return
	 */
	List<FuellingPayOrderTO> getUnCalculFuellingPayOrders(@Param("count") int count);
}
